export const option = {
  grid: {
    left: '0',
    right: '0',
    bottom: '0',
    top: '0',
    containLabel: true,
  },
  series: [
    {
      name: '热点分析',
      type: 'wordCloud',
      gridSize: 20, // 词语间距
      width: '90%',
      height: '80%',
      sizeRange: [15, 50],
      rotationRange: [0, 90],
      rotationStep: 90,
      // textRotation: [0, 45, 90, -45],
      textPadding: 0,
      textStyle: {
        fontWeight: 600,
        color: function () {
          let thisColor = 0
          const flag = Math.round(Math.random() * 10)
          if (flag <= 3) {
            thisColor = '#FDC959'
          } else if (flag >= 7) {
            thisColor = '#57606f'
          } else {
            thisColor = '#747d8c'
          }
          return thisColor
        },
        emphasis: {
          shadowBlur: 10,
          shadowColor: '#333',
        },
      },
      data: [],
    },
  ],
}
